﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NDatabase.Api;

namespace NDatabase.Repository
{
    /// <summary>
    /// NDatabase Context Interface
    /// </summary>
    public interface INDatabaseContext
    {
        /// <summary>
        /// Gets the name of the connection string.
        /// </summary>
        /// <value>
        /// The name of the connection string.
        /// </value>
        string ConnectionStringName { get; }

        /// <summary>
        /// Gets the data base.
        /// </summary>
        /// <value>
        /// The data base <see cref="NDatabase.Api.IOdb"/>.
        /// </value>
        IOdb DataBase { get; }

        /// <summary>
        /// Saves the changes.
        /// </summary>
        void SaveChanges();
    }
}
